package com.example.demo.service;


import com.example.demo.model.Post;

import java.util.List;

public interface PostService {
    List<Post> findPost();

    void add(Post Post, String name);

    void update(Post Post, Integer id);

    void delete(Integer id);

    List<Post> selectByUsername(String name);

    Post selectById(Integer id);

    List<Post> findPostByKeys(String keys);

    Post selectByTitle(String title);
}
